//
//  LGConsultStatusView.m
//  BreathTrainingTool
//
//  Created by 1234 on 2024/5/27.
//  聊天页面 - 倒计时、结束咨询

#import "LGConsultCountDownView.h"

@implementation LGConsultCountDownView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.timeLabel = [UILabel lableWithText:@"倒计时" colorString:@"#61616D" textFont:LGFontWeight(16, UIFontWeightMedium) textAlignment:NSTextAlignmentCenter lines:1];
        [self addSubview:self.timeLabel];
        [self.timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self).offset(-viewPix(10));
            make.centerY.equalTo(self);
        }];
        
        self.cancelBtn = [UIButton buttonWithTitle:@"结束咨询" titleFont:LGFontWeight(14, UIFontWeightMedium) textColor:@"#EF4444" frame:CGRectMake(Screen_W-viewPix(95), viewPix(3), viewPix(84), viewPix(32))];
        [self.cancelBtn addBorder:@"#EF4444" lineWidth:1 cornerRidus:viewPix(16)];
        [self addSubview:self.cancelBtn];
    }
    return self;
}


@end
